function forward_sinaweibo(title) {
    var title = encodeURI(title);
    var _t = encodeURI(document.title);
    var _url = encodeURIComponent(document.location); //获取当前页面url 
    var _assname = encodeURI('name');
    var _appkey = encodeURI('appkey');
    var _pic = encodeURI('');
    var _site = '';
    var _u = 'http://v.t.sina.com.cn/share/share.php?url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic + '&title=' + title + '&assname=' + _assname;
    window.open(_u, '', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
}
function forward_tencentweibo(title) {
    var title = encodeURI(title);
    var _t = encodeURI(document.title);
    var _url = encodeURIComponent(document.location);
    var _assname = encodeURI('name');
    var _appkey = encodeURI('appkey');
    var _pic = encodeURI('');
    var _site = 'http://www.quanshi.com';
    var _u = 'http://v.t.qq.com/share/share.php?url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic + '&title=' + title + '&assname=' + _assname;
    window.open(_u, '', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
}
function forward_tencentqzone(title) {
    var p = {
        url: location.href,
        showcount: '1',
        desc: '测试内容',
        summary: '',
        title: '测试内容标题',
        site: '',
        pics: '',
        style: '203',
        width: 98,
        height: 22
    };
    var s = [];
    for (var i in p) {
        s.push(i + '=' + encodeURIComponent(p[i] || ''));
    }
    var _u = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?' + s.join('&');
    window.open(_u, '', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
}

function forward_people(title) {
    var p = {
        resourceUrl: location.href,
        srcUrl: location.href,
        pic: '测试内容',
        title: title,
        description: ''
    };
    var s = [];
    for (var i in p) {
        s.push(i + '=' + encodeURIComponent(p[i] || ''));
    }
    var _u = 'http://widget.renren.com/dialog/share?' + s.join('&');
    window.open(_u, '', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
}
